package cn.kgc.crowdfundingadminspringboot.service;

import cn.kgc.crowdfundingadminspringboot.mapper.AdminMapper;
import cn.kgc.crowdfundingadminspringboot.pojo.Admin;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements  AdminService{
    @Resource
    AdminMapper adminMapper;
    @Override
    public Admin getByid(Integer id) {
        Admin admin = adminMapper.selectByPrimaryKey(id);
        return admin;
    }
}
